package com.sxds.wn.service;

import java.util.Map;

/**
 * Description: <p>业务处理层回馈对象</p>
 * Content Desc:<p>包括回馈基本信息<p>
 * Copy Right of Personal Tangtao 2007-2020
 * @author Andy
 * @version 1.0
 */
public class Response {
	
	//返回是否成功
	private boolean isOk;
	//返回封装消息对象
	private Map pageAttributes;
	//处理返回代码
	private String responseCode;
	//返回消息
	private String responseMessage;
	//错误处理异常信息
	private Exception stackTraceException;
	
	/**
	 * 默认构造方法
	 */
	public Response(){
		
	}
	
	/**
	 * 带参数构造方法
	 * @param pageAttributes
	 * @param responseCode
	 * @param responseMessage
	 */
	public Response(Map pageAttributes,String responseCode,String responseMessage){
		this.pageAttributes = pageAttributes;
		this.responseCode = responseCode;
		this.responseMessage = responseMessage;
	}

	/**
	 * @return the pageAttributes
	 */
	public Map getPageAttributes() {
		return pageAttributes;
	}

	/**
	 * @param pageAttributes the pageAttributes to set
	 */
	public void setPageAttributes(Map pageAttributes) {
		this.pageAttributes = pageAttributes;
	}

	/**
	 * @return the responseCode
	 */
	public String getResponseCode() {
		return responseCode;
	}

	/**
	 * @param responseCode the responseCode to set
	 */
	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}

	/**
	 * @return the responseMessage
	 */
	public String getResponseMessage() {
		return responseMessage;
	}

	/**
	 * @param responseMessage the responseMessage to set
	 */
	public void setResponseMessage(String responseMessage) {
		this.responseMessage = responseMessage;
	}

	/**
	 * @return the isOk
	 */
	public boolean isOk() {
		return isOk;
	}

	/**
	 * @param isOk the isOk to set
	 */
	public void setOk(boolean isOk) {
		this.isOk = isOk;
	}

	/**
	 * @return the stackTraceException
	 */
	public Exception getStackTraceException() {
		return stackTraceException;
	}

	/**
	 * @param stackTraceException the stackTraceException to set
	 */
	public void setStackTraceException(Exception stackTraceException) {
		this.stackTraceException = stackTraceException;
	}
	
}
